create Interstitial
fun createInterstitial(configurationID: String, activity: Activity, afterInterstitial: () -> Unit, lifecycleCallbacks: <Error class: unknown class>? = null): Int
Creates Interstitial ad which will be shown in the process of transition from one activity to another. You can also configure what to do after Interstitial in afterInterstitial
Return
the id Int of the object for the factory to manage it
Parameters
configuration ID
id used to fetch the unit configuration
activity
current activity where the interstitial must be shown, if activity dies the interstitial will be invalidated and destroyed
after Interstitial
this is called after ad fails to show or user closes the fullscreen
lifecycle Callbacks
(optional) go to InterstitialEventListener to know when the callbacks are called